package com.zhuangjie.coupon.dto;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.List;
@Getter
@Setter
public class QueryConfirmRequireDTO {
    @NotNull
    private Long shopId;
    @NotNull
    private String receivingMethod;
    private Long addressBookId;

    /**
     * 0表示先平台券再店铺券
     * 1表示先店铺券再平台券
     */
    @NotNull
    private Boolean isPlatformCouponFirst;

    /**
     * 平台满减券
     */
    private List<Long> platformCouponIds;

    /**
     * 店铺 满减券/折扣券
     */
    private List<Long> shopCouponIds;

    /**
     * 是否返回使用的优惠券详情
     */
    private Boolean isReturnCouponDetail;

    /**
     * 是否返回店铺信息
     * @return
     */
    private Boolean isReturnShopInfo;

    public boolean isReturnCouponDetail() {
        return isReturnCouponDetail != null && isReturnCouponDetail;
    }

    public boolean isReturnShopInfo() {
        return isReturnShopInfo != null && isReturnShopInfo;
    }

}
